﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace schedulelist.ORM.domain
{
    public class Tickets : EntityBase
    {
        public Tickets() { }
        public virtual User owner { get; set; }
        public virtual string dm { get; set; }//date_must
        public virtual string dd { get; set; }//date_done
        public virtual string task { get; set; }
        public virtual string status { get; set; }
        public virtual User ex { get; set; }//executor
        public virtual Customer cust { get; set; }//customer
        public virtual Category cat { get; set; }//category
        public virtual string addinf { get; set; }
        public Tickets(User o, string s1, string s2, string s3, string s4, User e, Customer cu, Category ca, string s5) {
            this.owner=o;
            this.dm = s1;
            this.dd = s2;
            this.task = s3;
            this.status = s4;
            this.ex = e;
            this.cust = cu;
            this.cat = ca;
            this.addinf = s5;
        }
        /*void selectTicketsByCategory() { }
        void selectTicketsByCustomer() { }
        void selectTicketsbyDate() { }
        void selectTicketsForPriorityCustomer() { }
        void selectTicketsForUser() { }*/
    }
}
